import * as PIXI from 'pixi.js'
import { abilityText } from '@renderer/utils/bundle'
export default async (data: Wx.Card.Data): Promise<PIXI.Container<PIXI.ContainerChild>> => {
  const container = new PIXI.Container()
  await abilityText(data, container)
  container.position.set(0, 506 / 2 - 126 + 10)

  // if (rowNum > 4) {
  //   text.style.fontSize = 28 - (rowNum - 4)
  //   text.style.lineHeight = 23 - (rowNum - 4)
  // }
  return container
}
